package com.guandeng.dubbo.services;


/**
 * @author guandeng.fan
 * @date 2022/5/10 11:39
 */
public class Singleton {

    private static Singleton instance = null;

    private Singleton() {

    }

    public static synchronized Singleton getInstance() {
        if (instance == null) {
            instance = new Singleton();
        }
        return instance;
    }

    public String test(String name) {
        return name;
    }
}
